package DBHandler;

import org.eclipse.swt.widgets.Display;

import Control.SearchEx;
import UI.SearchWin;


public class Starter {

	/*
	 * main entrance for SEARCH program, initliazing the sync, SearchEx, and opening the gui
	 */
	public static void main(String[] args) {
		
		
		Display display = new Display();
		

		
		//build a search executor
		SearchEx search = new SearchEx(new Searcher());
		
		//should update tags, and keep listening in diffrent thread for library changes
		Syncer syncer = new Syncer();
		
		
		
		
		//make window (connected to the searcher) :
		new SearchWin(display, search);
		
		
		
		//catch event main loop
	    while (display.getShells().length > 0) {
	        if (!display.readAndDispatch()) display.sleep();
	    }
	    display.dispose();

	}

}
